vip_number = input('输入您的会员号码')
if not int(vip_number) >= 10000 and int(vip_number) < 1000: #当号码不多于5位且不小于3位才是正常号码
    number1 = int(vip_number[0])
    number2 = int(vip_number[1])
    number3 = int(vip_number[2])
    number4 = int(vip_number[3])
    number_total = number1 + number2 + number3 + number4
    if number_total >= 24:
        print('获得彩电一台')
    elif number_total >=20:
        print('获得电吹风一部')
    elif number_total >= 16:
        print('餐巾纸一包')
    else:
        print('恭喜您屁都没有')
else:
    print('您的号码不合法')